From f4d8a26972728891de8bde4eeb94c80f027ce2d2 Mon Sep 17 00:00:00 2001 From: diogo464 Date: Mon, 11 Aug 2025 16:04:32 +0100 Subject: basic v0 ui working --- frontend/app/drive/[...path]/page.tsx | 58 ----------------------------------- 1 file changed, 58 deletions(-) delete mode 100644 frontend/app/drive/[...path]/page.tsx (limited to 'frontend/app/drive/[...path]') diff --git a/frontend/app/drive/[...path]/page.tsx b/frontend/app/drive/[...path]/page.tsx deleted file mode 100644 index be11253..0000000 --- a/frontend/app/drive/[...path]/page.tsx +++ /dev/null @@ -1,58 +0,0 @@ -import { Drive_ls } from "@/lib/drive_server" -import { Drive_parent } from "@/lib/drive_shared" -import Link from "next/link" -import { Auth_get_user, Auth_user_can_upload } from "@/lib/auth"; -import FileUpload from "@/components/FileUpload" -import FileTable from "@/components/FileTable" - -interface DrivePageProps { - params: Promise<{ - path: string[] - }> -} - -export default async function DrivePage({ params }: DrivePageProps) { - // Await params as required by Next.js 15 - const { path } = await params - - const user = await Auth_get_user(); - - // Construct the full path from params - const fullPath = path ? `/${path.join('/')}` : "" - - const entries = await Drive_ls(fullPath, false) - - // Check if we have a parent directory - const parentDir = Drive_parent(fullPath) - const parentPath = path && path.length > 1 - ? `/drive/${path.slice(0, -1).join('/')}` - : path && path.length === 1 - ? '/drive' - : null - - const showParent = parentDir !== null && parentPath !== null - - return ( -
-
- -

FCTDrive

- - - - - {/* File Upload Component */} - {Auth_user_can_upload(user) && ( - - )} -
-
- ) -} -- cgit